package ess.hardware;

import ess.control.Direction;

public class FloorOperationEvent {

	int at; // floor
	int opType;
	int opValue;
	
	public static int TYPE_CALL = 1;
	public static int TYPE_OBSTACLE = 2;
	
	public static int VALUE_UP = Direction.UP;
	public static int VALUE_DOWN = Direction.DOWN;
	public static int VALUE_OBSTACLE_DETECTED = 3;
	public static int VALUE_OBSTACLE_NOT_DETECTED = 4;
	
	public FloorOperationEvent(int at, int type, int value)
	{
		this.at = at;
		this.opType = type;
		this.opValue = value;
	}
	
	public int getOperationFloor()
	{
		return at;
	}
	
	public int getOperationType()
	{
		return opType;
	}
	
	public int getOperationValue()
	{
		return opValue;
	}
}
